package org.geek4j.thirty.percent.service;

import org.geek4j.thirty.percent.persistence.domain.Category;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Geek4J
 * @since 2016年4月9日 上午11:22:19
 * @description CategoryServiceT
 */
@Slf4j
public class CategoryServiceT extends BaseTest {

	@Autowired
	private CategoryService categoryService;

	@Test
	public void save() {
		Category category = new Category();
		category.setName("分类测试00");
		category.setStatus(0);
		categoryService.save(category);
	}

	@Test
	public void findOne() {
		Category category = categoryService.findOne(1);
		log.error(category.getName());
	}
}
